 <template>
  <el-table stripe border :data="list" style="width: 100%">
    <el-table-column align="center" type="index" label="序号" width="100"> </el-table-column>
    <el-table-column align="center" prop="eui" label="EUI"> </el-table-column>
    <el-table-column align="center" prop="name" label="姓名"> </el-table-column>
    <el-table-column align="center" :formatter="formatTime" prop="bTime" label="绑定时间"> </el-table-column>
    <el-table-column align="center" :formatter="formatOnline" prop="online" label="状态"> </el-table-column>
    <el-table-column align="center" prop="agreement" label="协议"> </el-table-column>
  </el-table>
</template>

  <script>
export default { 
    props:['list'],

    methods: {
      formatOnline(row,col,value) {
        if (value) {
          return '在线';
        } else {
          return '离线'
        }
      }
    }
};
</script>